import { SYS_LOCAL_DIC } from '@/util/SYS_LOCAL_DIC'
import { DeptUrl } from '@/views/system/dic/dicApi'

export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    excelBtn:true,
    menuWidth:130,
    title:'系统角色表',//表格的标题
    stripe: false,
    selection: true,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    // defaultSort: {
    //   prop: 'name',
    //   order: 'descending'
    // },
    dicData: SYS_LOCAL_DIC,
    column: [{
            label: "角色名称",
            prop: "roleName",
            tip: '必须输入角色名称',
            width: 120,
            sortable: true,
            search: true,
            solt: true,
            showClomnu: false, //列不显示无法控制
            placeholder: '请输入角色名称',
            rules: [{
                required: true,
                message: "请输入角色名称",
                trigger: "blur"
            }]
        },
        {
            label: "部门",
            prop: "deptId",
            width: "200",
            row: true,
            search: true,
            type:'select',
            props: {value: 'id', label: 'deptName'},
            dicUrl:DeptUrl,
        },
        {
            label: "状态",
            prop: "enable",
            width: "50",
            type: "switch",
            valueDefault: 1,
            dicData: SYS_LOCAL_DIC.STATE,
        },
        {
            label: "添加时间",
            prop: "createTime",
            type: "datetime",
            width: "230",
            format:'yyyy年MM月dd日HH时mm分ss秒',
            search: true,
        },
        {
            label: "角色描述",
            prop: "remark",
            sortable: false,
            type: 'textarea',
            align: "left",
            maxRow: 4,
            minRow: 4,
            span: 24,
            disabled: false,
            addDisabled: false,
            overHidden: true
        },
    ]
};